package com.inyaa.web.blog.controller;


import com.inyaa.base.bean.BaseResult;
import com.inyaa.web.feign.InyaaAdminFeignService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("/config")
@RequiredArgsConstructor
public class InyaaSysConfigController {

    private final InyaaAdminFeignService inyaaAdminFeignService;

    @GetMapping("/list")
    public BaseResult<Map<String, Object>> findMenuList(Integer type) {
        return inyaaAdminFeignService.getConfig(type);
    }

}
